package ro.unibuc.nautilus.domain;

import java.util.Date;

public class Cargo extends Ship {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// perisabile, cereale etc
	private String transportType;

	// numar de macarale pe punte
	private int numberOfCranes;

	public String getTransportType() {
		return transportType;
	}

	public void setTransportType(String transportType) {
		this.transportType = transportType;
	}

	public int getNumberOfCranes() {
		return numberOfCranes;
	}

	public void setNumberOfCranes(int numberOfCranes) {
		this.numberOfCranes = numberOfCranes;
	}

	public Cargo() {
		super();
		this.setShipType(Ship.CARGO);
	}

	public Cargo(String name, double totalCapacity, double payload,
			double length, double draft, double speed, String fuel,
			Harbour baseHarbor, Harbour registrationHarbor,
			Harbour lastLocation, Date locationReportDate,
			String transportType, int cranes) {
		super(name, totalCapacity, payload, length, draft, speed, fuel,
				baseHarbor, registrationHarbor, lastLocation,
				locationReportDate);
		this.transportType = transportType;
		this.numberOfCranes = cranes;
	}
}
